package com.zhu.service.edu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhu.service.edu.pojo.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.service.edu.pojo.vo.TeacherQueryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author zhu
 * @since 2022-07-04
 */
public interface IEduTeacherService extends IService<EduTeacher> {

    IPage<EduTeacher> selectPage(Page<EduTeacher> eduTeacherPage, TeacherQueryVo teacherQueryVo);

    List<Map<String, Object>> selectNameListByKey(String key);

    boolean deleteAvatarByUrl(String id);

    /**
     * 根据id删除教师（逻辑删除）
     * @param id
     * @return
     */
    boolean removeTeacherById(String id);

    Map<String, Object> selectTeacherInfo(String id);
}
